package com.test.action;

import com.test.bean.User;
import com.test.dao.UserDao;

public class RegAction {

	private User user;
	private UserDao userDao;

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public String reg() {
		
		for(int i=0;i<33;i++){
			user.setName("lili"+" "+i);
			userDao.save(user);	
		}
       //this is test
       
		return "success";
	}
	
	

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
